/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmProgram.java
 *
 * Created on 01-06-2011, 20:33:41
 */
package Presentation;

import java.awt.Image;
import java.awt.Toolkit;
import java.net.URL;
import javax.swing.ImageIcon;

/**
 *
 * @author Nixforest
 */
public class frmProgram extends javax.swing.JInternalFrame {

    /** Creates new form frmProgram */
    public frmProgram() {
        initComponents();
        
        URL url = getClass().getResource("../Images/ui/bg-Nguyen.png");
        Image img = Toolkit.getDefaultToolkit().getImage(url);
        ImageIcon icon = new ImageIcon(img);
        //ImagePanel bkgr = new ImagePanel(img);
        //pnlBG.add(bkgr);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlBG = new javax.swing.JPanel();

        setClosable(true);
        setTitle(java.util.ResourceBundle.getBundle("Presentation/" + frmMain.resource).getString("program"));
        setMaximumSize(new java.awt.Dimension(466, 380));
        setMinimumSize(new java.awt.Dimension(466, 380));
        setPreferredSize(new java.awt.Dimension(466, 380));

        pnlBG.setMaximumSize(new java.awt.Dimension(450, 350));
        pnlBG.setMinimumSize(new java.awt.Dimension(450, 350));

        javax.swing.GroupLayout pnlBGLayout = new javax.swing.GroupLayout(pnlBG);
        pnlBG.setLayout(pnlBGLayout);
        pnlBGLayout.setHorizontalGroup(
            pnlBGLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 450, Short.MAX_VALUE)
        );
        pnlBGLayout.setVerticalGroup(
            pnlBGLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 350, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pnlBG, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pnlBG, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel pnlBG;
    // End of variables declaration//GEN-END:variables
}
